package com.lastproject.ejb.dao;

import java.util.Date;
import java.util.List;

import javax.ejb.Remote;

import com.lastproject.dto.BorrowedDTO;

@Remote
public interface BorrowedDAORemote {
	void create(BorrowedDTO entity);

	void edit(BorrowedDTO entity);

	void remove(BorrowedDTO entity);

	BorrowedDTO findById(Object id);

	public List<BorrowedDTO> getAll();

	BorrowedDTO findCurrentBorrowOfABook(int id);

	List<BorrowedDTO> getRecentBook(int id);

	List<BorrowedDTO> getByReturnDate(int id);

	List<BorrowedDTO> getAllByBook(int id);

	BorrowedDTO getByIdUserIdBookDate(int idUser, int idBook, Date today);

}
